import 'package:kkhousekeep/generated/json/base/json_field.dart';
import 'package:kkhousekeep/generated/json/home_village_change_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class HomeVillageChangeEntity {
	late int code;
	late HomeVillageChangeObj obj;
	late String msg;

	HomeVillageChangeEntity();

	factory HomeVillageChangeEntity.fromJson(Map<String, dynamic> json) => $HomeVillageChangeEntityFromJson(json);

	Map<String, dynamic> toJson() => $HomeVillageChangeEntityToJson(this);

	HomeVillageChangeEntity copyWith({int? code, HomeVillageChangeObj? obj, String? msg}) {
		return HomeVillageChangeEntity()
			..code= code ?? this.code
			..obj= obj ?? this.obj
			..msg= msg ?? this.msg;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class HomeVillageChangeObj {
	late String token;

	HomeVillageChangeObj();

	factory HomeVillageChangeObj.fromJson(Map<String, dynamic> json) => $HomeVillageChangeObjFromJson(json);

	Map<String, dynamic> toJson() => $HomeVillageChangeObjToJson(this);

	HomeVillageChangeObj copyWith({String? token}) {
		return HomeVillageChangeObj()
			..token= token ?? this.token;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}